//
//  MHInComeDetailTableViewCell.m
//  MiaoCircle
//
//  Created by 许正荣 on 2018/7/24.
//  Copyright © 2018年 acgera. All rights reserved.
//

#import "MHInComeDetailTableViewCell.h"
#import "MHInComeItemViewModel.h"

@implementation MHInComeDetailTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.contentLabel.font = MHRegularFont_14;
    self.timeLabel.font = MHRegularFont_11;
    self.incomeLabel.font = MHRegularFont_18;
    
}
-(void)bindViewModel:(MHInComeItemViewModel *)viewModel
{
    self.contentLabel.text = viewModel.model.info;
    self.timeLabel.text = viewModel.model.date;
    NSString *pre = viewModel.type == MHPurseTypeIncome ? @"+":@"-";
    self.incomeLabel.text = [NSString stringWithFormat:@"%@%.2f",pre,viewModel.model.amount];
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
